home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Essentials / Technical.Notes / AIIc / TN.IIC.009 < prev   
Encoding:
Text File  |  1991-01-11  |  1.3 KB  |  34 lines  |  [TEXT/pdos]

  1. Apple II
  2. Technical Notes
  3. _____________________________________________________________________________
  4.                                                   Developer Technical Support
  5.  
  6.  
  7. Apple IIc
  8. #9:    Detecting VBL
  9.  
  10. Written by:    Dan Strnad                                       November 1990
  11.  
  12. This Technical Note describes how the VBLInt flag at $C019 behaves differently
  13. than documented in the Apple IIc Technical Reference Manual, Second Edition,
  14. when being polled.
  15. _____________________________________________________________________________
  16.  
  17.  
  18. The Apple IIc Technical Reference Manual, Second Edition, claims that reading
  19. $C019 reads and resets the VBLInt flag.  This is not correct.  After reading
  20. $C019 once the high bit has been set to flag VBL, the high bit remains set.  A
  21. program polling VBL at $C019 would have to access either PTrig at $C070 or
  22. RdIOUDis at $C07E to reset the high-bit for $C019.  Note that IOUDis must have
  23. been turned off by writing to $C07F then ENVBL accessed at $C05B in order to
  24. poll for $C019 on the IIc.
  25.  
  26. Developers are encouraged to detect VBL using an interrupt handler with one of
  27. the VBL-based mouse modes on the IIc, if possible.
  28.  
  29.  
  30. Further Reference
  31. _____________________________________________________________________________
  32.   o  Apple IIc Technical Reference Manual, Second Edition
  33.  
  34.